<template>
  <div style="text-align: left">
    <comment :comments="commentData"

    ></comment>
</div>
</template>

<script>
  //import * as CommentData from '../../myComment/mockdata/mockdata'
  import comment from '../../myComment/comment/comment'
    export default {
      name: "contactMe",
      data(){
        return{
        commentData:[],
        }
      },
      components: {
        comment
      },
      mounted:function() {
        this.init()
      },


      methods: {


        init() {
          let that = this;
          let formData = new FormData();
          formData.append("uid","0");
          that.axios({
            url:'/api/commentGo',
            method:'post',
            data:formData,
          }).then(function (response) {
            if(response.status === 200){
              console.log("芒果发送的数据",response.data)
              that.commentData = response.data
            }

          })
        }

        ,
        ////////////////


        open() {
          this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
            confirmButtonText: '确定',
            cancelButtonText: '取消',
            type: 'warning'
          }).then(() => {



            this.$message({
              type: 'success',
              message: '删除成功!'

            });



          }).catch(() => {
            this.$message({
              type: 'info',
              message: '已取消删除'
            });
          });
        }

        ///////////////////





      }
    }
</script>

<style scoped>

</style>
